division of polynomials by trinomials